module.exports = {
  publicPath: process.env.NODE_ENV == 'development' ? '/' : './',
  devServer: {
    port: 8080,
    proxy: {
      // 设置代理
      '/api': {
        target: 'http://127.0.0.1:3000',
        pathRewrite: {
          '/api': '',
        },
      },
      '/static': {
        target: 'http://127.0.0.1:3300',
      },
    },
  },
}
